#ifndef __TwGUIStaticImage_H__
#define __TwGUIStaticImage_H__

#include "TwGUIWindow.h"
#include "TwGUIWindowFactory.h"
#include "TwGUIImage.h"

namespace TwGUI
{
	class StaticImage : public Window
	{
	public:
		StaticImage(const std::string& type, const std::string& name) : d_image (0), Window(type, name) {}

		const Image* getImage() const;
		void setImage(const Image* img);

	protected:
		virtual void populateRenderCache();

	protected:
		const Image* d_image;
	};

	TwGUI_DECLARE_WINDOW_FACTORY(StaticImage);
}

#endif //__TwGUIStaticImage_H__